﻿using System;

namespace UnityEngine.PostProcessing
{
	// Token: 0x02000116 RID: 278
	public class PostProcessingContext
	{
		// Token: 0x170000B0 RID: 176
		// (get) Token: 0x0600066F RID: 1647 RVA: 0x00026690 File Offset: 0x00024890
		// (set) Token: 0x06000670 RID: 1648 RVA: 0x00026698 File Offset: 0x00024898
		public bool interrupted { get; private set; }

		// Token: 0x06000671 RID: 1649 RVA: 0x000266A4 File Offset: 0x000248A4
		public void Interrupt()
		{
			this.interrupted = true;
		}

		// Token: 0x06000672 RID: 1650 RVA: 0x000266B0 File Offset: 0x000248B0
		public PostProcessingContext Reset()
		{
			this.profile = null;
			this.camera = null;
			this.materialFactory = null;
			this.renderTextureFactory = null;
			this.interrupted = false;
			return this;
		}

		// Token: 0x170000B1 RID: 177
		// (get) Token: 0x06000673 RID: 1651 RVA: 0x000266D8 File Offset: 0x000248D8
		public bool isGBufferAvailable
		{
			get
			{
				return this.camera.actualRenderingPath == RenderingPath.DeferredShading;
			}
		}

		// Token: 0x170000B2 RID: 178
		// (get) Token: 0x06000674 RID: 1652 RVA: 0x000266E8 File Offset: 0x000248E8
		public bool isHdr
		{
			get
			{
				return this.camera.allowHDR;
			}
		}

		// Token: 0x170000B3 RID: 179
		// (get) Token: 0x06000675 RID: 1653 RVA: 0x000266F8 File Offset: 0x000248F8
		public int width
		{
			get
			{
				return this.camera.pixelWidth;
			}
		}

		// Token: 0x170000B4 RID: 180
		// (get) Token: 0x06000676 RID: 1654 RVA: 0x00026708 File Offset: 0x00024908
		public int height
		{
			get
			{
				return this.camera.pixelHeight;
			}
		}

		// Token: 0x170000B5 RID: 181
		// (get) Token: 0x06000677 RID: 1655 RVA: 0x00026718 File Offset: 0x00024918
		public Rect viewport
		{
			get
			{
				return this.camera.rect;
			}
		}

		// Token: 0x04000638 RID: 1592
		public PostProcessingProfile profile;

		// Token: 0x04000639 RID: 1593
		public Camera camera;

		// Token: 0x0400063A RID: 1594
		public MaterialFactory materialFactory;

		// Token: 0x0400063B RID: 1595
		public RenderTextureFactory renderTextureFactory;
	}
}
